package cn.edu.xmu.orderpayment.payment.util.config;

import cn.edu.xmu.orderpayment.payment.util.config.payconfigs.AliPayConfig;
import cn.edu.xmu.orderpayment.payment.util.config.payconfigs.WeChatPayConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zihan zhou
 * @date 2021/12/5
 */
@Configuration
public class PayConfig {
    @Bean
    public AliPayConfig getAliPayConfig(){
        return new AliPayConfig("20214072300007148", "notifyUrl", "format", "utf-8","RSA2","601510b7970e52cc63db0f4497cf70e","1.0");
    }

    @Bean
    public WeChatPayConfig getWeChatPayConfig(){
        return new WeChatPayConfig("wxd678efh567hg6787", "notifyUrl", "","oUpF8uMuAJO_M2pxb1Q9zNjWeS6o", "1230000109");
    }

}
